﻿/* A Container, where resources are restored and an AppDomain backed LiveObjectContainer will sandbox instances */
CREATE TABLE DBLiveObjects.DBContainer(
	ID							uniqueidentifier PRIMARY KEY,				/* Unique GUID for this object */
	DBExecutionContextID		uniqueidentifier NOT NULL,					/* belongs to some execution context */
	Name						varchar(255) NOT NULL,						/* Have a name, if 'Default' use default AppDomain */
	IsStrong					bit,								        /* If Name is not 'Default' use a new AppDomain (IsStrong=false) or a separate Exe (IsStrong=true) */
	
	FOREIGN KEY (DBExecutionContextID) REFERENCES DBLiveObjects.DBExecutionContext(ID) ON DELETE CASCADE,
	
	_InsertionStamp							bigint,
	_UpdateStamp							bigint,
);